package com.nmh.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nmh.entity.DictType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface dictTypeMapper extends BaseMapper<DictType> {
    @Select("select distinct dict_type,dict_id from dict_type")
    List<DictType> getDictTypes();
    @Select("select distinct dict_id from dict_type where dict_type=#{dictType}")
    Integer getByone(String dictType);
}
